﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using E_Shop.Common;
using ESHOP.DAO;
using ESHOP.Domain;
namespace E_Shop
{
    public partial class Allsearch : Authentication
    {
        private readonly SellLeadDao _selldao = new SellLeadDao();
        private readonly BuyLeadDAO _buydao = new BuyLeadDAO();
        private readonly CONGTYDAO _congtydao = new CONGTYDAO();
        private readonly SanPhamDAO _sanphamdao = new SanPhamDAO();
        protected void Page_Load(object sender, EventArgs e)
        {
            BinddatatoForm();
        }
        
        private void BinddatatoForm()
        {
            var listselling = _selldao.GetList();
            listproduc.DataSource = listselling;
            listproduc.DataBind();
        }

    }
}